Windows
Windows
- Create a new file named TimeTest.java and paste the above Java code to the file.
- Save this file to a local folder, e.g. c:\TimeTest
- Open a command prompt
- Set the CLASSPATH to include the current directory and the Notes jvm, e.g.,
> set CLASSPATH=.;"c:\Program Files\IBM\Lotus\Notes\jvm"
> C:\TimeTest>javac TimeTest.java
> java TimeTest.class
C:\$time>dir
Volume in drive C has no label.
Volume Serial Number is 0E51-61D6
Directory of C:\$time
05/25/2010 01:23 PM <DIR> .
05/25/2010 01:23 PM <DIR> ..
04/21/2010 06:23 PM 943 TimeTest.class
1 File(s) 943 bytes
2 Dir(s) 137,435,549,696 bytes free
C:\$time>set CLASSPATH=.;c:\hannover852.0412\jvm
C:\$time>java TimeTest.class
Tue May 25 13:23:39 EDT 2010
sun.util.calendar.ZoneInfo[id="America/New_York",offset=-18000000,dstSavings=360
0000,useDaylight=true,transitions=235,lastRule=java.util.SimpleTimeZone[id=Ameri
ca/New_York,offset=-18000000,dstSavings=3600000,useDaylight=true,startYear=0,sta
rtMode=3,startMonth=2,startDay=8,startDayOfWeek=1,startTime=7200000,startTimeMod
e=0,endMode=3,endMonth=10,endDay=1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]
]
America/New_York
Eastern Standard Time
Curently in daylight-savings time.
C:\$time>